package io.netty.myExample.duyutian.fastThreadLocal测试;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author duyutian
 * @version 1.0
 * @date2020/6/17 14:07
 * 测试原子类
 */
public class AtomicIntegerTest {
    public static void main(String[] args) {
        AtomicInteger atomicInteger = new AtomicInteger();;
        int andIncrement = atomicInteger.getAndIncrement();
        System.out.println(andIncrement);
        System.out.println(atomicInteger.get());
        System.out.println(atomicInteger.getAndIncrement());
    }
}
